package com.hdax.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hdax.entity.CusIntention;
import com.hdax.dao.CusIntentionMapper;
import com.hdax.service.CusIntentionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 客户意向表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-03-22
 */
@Service
public class CusIntentionServiceImpl extends ServiceImpl<CusIntentionMapper, CusIntention> implements CusIntentionService {

    @Autowired
    private CusIntentionMapper cusIntentionMapper;

    public IPage<CusIntention> findCusIntention(IPage<?> page,Map map){
       return cusIntentionMapper.findCusIntention(page,map);
    }

    public CusIntention findCusIntentionById(Integer id){
        return cusIntentionMapper.findCusIntentionById(id);
    }

}
